home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Misc / InstallerNG / developer / gui / example / igui_GetScreenName.c < prev    next >
C/C++ Source or Header  |  1999-10-28  |  1KB  |  56 lines

  1.  
  2. #include "includes.h"
  3. #include "installergui_data.h"
  4.  
  5. /********************************************************************
  6.  *
  7.  *  DESCRIPTION
  8.  *
  9.  *  returns the name of the screen, on which the InstallerNG is
  10.  *  running on. since this simple GUI does not support a custom
  11.  *  screen for the InstallerNG, it always returns the name of the
  12.  *  workbench screen. the InstallerNG uses this function to open
  13.  *  its console windows on special screens, so be prepared to
  14.  *  return correct values!
  15.  *
  16.  *  IN:  application - pointer to the private application structure
  17.  *  OUT: the screen name of the InstallerNG gui
  18.  *
  19.  *
  20.  */
  21.  
  22. /********************************************************************
  23.  *
  24.  *  STATIC
  25.  *
  26.  */
  27.  
  28. static char *wbName = "Workbench";
  29.  
  30. /********************************************************************
  31.  *
  32.  *  EXTERN
  33.  *
  34.  */
  35.  
  36. /********************************************************************
  37.  *
  38.  *  PUBLIC
  39.  *
  40.  */
  41.  
  42. /********************************************************************
  43.  *
  44.  *  CODE
  45.  *
  46.  */
  47.  
  48. char * __asm igui_GetScreenName(register __a0 APTR application)
  49. {
  50.   #ifdef DEBUG
  51.   DEBUG_MAKRO
  52.   #endif
  53.  
  54.   return (wbName);
  55. }
  56.